import { createApp } from 'vue'
import App from './App.vue'
import { globalRegister } from './global'
import router from './router'
import store from './store'
import 'normalize.css'
import './assets/css/index.less'
import { setupStore } from './store'

const app = createApp(App)
// 注册element-plus/其他
app.use(globalRegister)
app.use(store)
setupStore()
app.use(router)

app.mount('#app')

// interface DataType {
//   data: any
//   success: boolean
// }

// syRequest
//   .get<DataType>({
//     url: '/home/multidata',
//     showLoading: true
//   })
//   .then((res) => {
//     console.log(res.data)
//   })
